package idiet.util;

import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.swt.graphics.Image;

public class ViewUtil {
	public static void showErrorOnStatusline(String error,IStatusLineManager iStatusLineManager) {
		IStatusLineManager statusline = iStatusLineManager;
		statusline.setErrorMessage(null, error);
	}
	public static void showErrorOnStatusline(Image icon,String error,IStatusLineManager iStatusLineManager){
		IStatusLineManager statusline = iStatusLineManager;
		statusline.setErrorMessage(icon, error);
	}
}
